package com.example.pre.model.vo;

import java.util.Collection;

import com.example.pre.model.Department;
import com.example.pre.model.User;

public class DepartmentVO {
	private int id; // 部门id
	private String name; // 部门名
	private String description;// 部门描述
	private Collection<User> users;// 用户集合

	public DepartmentVO() {
		super();
	}

	public DepartmentVO(Department department, Collection<User> users) {
		super();
		this.id = department.getId();
		this.name = department.getName();
		this.description = department.getDescription();
		this.users = users;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Collection<User> getUsers() {
		return users;
	}

	public void setUsers(Collection<User> users) {
		this.users = users;
	}

	@Override
	public String toString() {
		return "DepartmentVO [id=" + id + ", name=" + name + ", description=" + description + ", users=" + users + "]";
	}

}
